package com.itonghui.biz.approvalprocess.services;

public class ApprovalProcessServiceProxy implements com.itonghui.biz.approvalprocess.services.ApprovalProcessService {
  private String _endpoint = null;
  private com.itonghui.biz.approvalprocess.services.ApprovalProcessService approvalProcessService = null;
  
  public ApprovalProcessServiceProxy() {
    _initApprovalProcessServiceProxy();
  }
  
  public ApprovalProcessServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initApprovalProcessServiceProxy();
  }
  
  private void _initApprovalProcessServiceProxy() {
    try {
      approvalProcessService = (new com.itonghui.biz.approvalprocess.services.impl.ApprovalProcessServiceImplServiceLocator()).getApprovalProcessServiceImplPort();
      if (approvalProcessService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)approvalProcessService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)approvalProcessService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (approvalProcessService != null)
      ((javax.xml.rpc.Stub)approvalProcessService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.itonghui.biz.approvalprocess.services.ApprovalProcessService getApprovalProcessService() {
    if (approvalProcessService == null)
      _initApprovalProcessServiceProxy();
    return approvalProcessService;
  }
  
  public java.lang.String apiServiceApprovalLog(com.itonghui.biz.approvalprocess.services.ApprovalLogDAO arg0) throws java.rmi.RemoteException{
    if (approvalProcessService == null)
      _initApprovalProcessServiceProxy();
    return approvalProcessService.apiServiceApprovalLog(arg0);
  }
  
  
}